package com.wang.pojo;

public class Husband {

    private Integer id;
    private String husbandName;
    private Integer age;
    private Integer wifeId;
    private Wife wife;

    public Husband() {
    }

    public Husband(Integer id, String husbandName, Integer age, Integer wifeId, Wife wife) {
        this.id = id;
        this.husbandName = husbandName;
        this.age = age;
        this.wifeId = wifeId;
        this.wife = wife;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHusbandName() {
        return husbandName;
    }

    public void setHusbandName(String husbandName) {
        this.husbandName = husbandName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getWifeId() {
        return wifeId;
    }

    public void setWifeId(Integer wifeId) {
        this.wifeId = wifeId;
    }

    public Wife getWife() {
        return wife;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    @Override
    public String toString() {
        return "Husband{" +
                "id=" + id +
                ", husbandName='" + husbandName + '\'' +
                ", age=" + age +
                ", wifeId=" + wifeId +
                ", wife=" + wife +
                '}';
    }
}
